home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / BUS / LN2.4.5.sit / LN2.4.5 / LN Data Converter v1.2.1 / card_2884.txt < prev    next >
Text File  |  1996-04-12  |  7KB  |  241 lines

  1. -- card: 2884 from stack: in.1
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2648
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 15
  10. -- high flags: 0007
  11. -- rect: left=33 top=38 right=263 bottom=491
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 16384
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Text
  20.  
  21.  
  22. -- part 2 (field)
  23. -- low flags: 15
  24. -- high flags: 0002
  25. -- rect: left=33 top=10 right=32 bottom=491
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 1
  29. -- font id: 16384
  30. -- text size: 14
  31. -- style flags: 0
  32. -- line height: 18
  33. -- part name: File
  34.  
  35.  
  36. -- part 3 (button)
  37. -- low flags: 00
  38. -- high flags: A003
  39. -- rect: left=35 top=292 right=314 bottom=118
  40. -- title width / last selected line: 0
  41. -- icon id / first selected line: 0 / 0
  42. -- text alignment: 1
  43. -- font id: 16383
  44. -- text size: 12
  45. -- style flags: 0
  46. -- line height: 16
  47. -- part name: Read
  48. ----- HyperTalk script -----
  49. on mouseUp
  50.   answer file "テ影テ鵜テ厩テ曳テ液テ院テ韻テ嘉」テ‡ツゥテ‡テテ映テ…[テ運テ‡テεャツォテ‡窶コテァテサテ‡窶コテ‡ï」ソテ‡ツオテ‡窶ケテ‡竏妥③" & return & "テェテ催ウpテ‡テε液テ院テ韻テ嘉」テ‡ï」ソテォIテォï」ソテ‡ツオテ‡ニ津‡竕 テ‡テヲテ‡竕・テ‡ツ「テ③" of type TEXT
  51.   if it is empty then exit mouseUp
  52.   put it into rFN
  53.   put rFN into cd field "File"
  54.   open file rFN
  55.   read from file rFN until eof
  56.   put it into cd field "Text"
  57.   close file rFN
  58. end mouseUp
  59.  
  60.  
  61. -- part 4 (button)
  62. -- low flags: 00
  63. -- high flags: A003
  64. -- rect: left=141 top=292 right=314 bottom=310
  65. -- title width / last selected line: 0
  66. -- icon id / first selected line: 0 / 0
  67. -- text alignment: 1
  68. -- font id: 16383
  69. -- text size: 12
  70. -- style flags: 0
  71. -- line height: 16
  72. -- part name: Convert
  73. ----- HyperTalk script -----
  74. on mouseUp
  75.   put the date into dateT
  76.   convert dateT to dateItems
  77.   put cd field "Text" into TEXT
  78.   put "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday" into CW
  79.   put 99 into Ch
  80.   repeat with N=1 to 10
  81.     if char 1 to 3 of line N of TEXT is "竚ィN" then put 2 into Ch
  82.     if char 1 to 4 of line N of TEXT is "竚アbg" then put 20 into Ch
  83.     if char 1 to 3 of line N of TEXT is "竚アN" then put 1 into Ch
  84.     if char 1 to 3 of line N of TEXT is "竚ゴN" then put 1 into Ch
  85.     if char 1 to 3 of line N of TEXT is "竚イN" then put 1 into Ch
  86.     if char 1 to 3 of line N of TEXT is "竚ゥN" then put 40 into Ch
  87.     if item 1 of line N of TEXT is "竚ウS" then put 30 into Ch
  88.   end repeat
  89.  
  90.   if Ch=99 then
  91.     answer "テ‡ツアテ‡テε映テ…[テ運テ‡テ陛嘘テ嘉ャテ頴テ…[テ曳テ‡テεッKテウvテ‡邃「テ‡窶 テ‡テ凝‡窶ケテ‡マ\テ‡テ津③"
  92.     exit mouseUp
  93.   end if
  94.  
  95.   if Ch=20 then
  96.     if char 1 to 4 of line 4 of TEXT is "竚アbg" then delete line 4 of TEXT
  97.     repeat with N=(number of lines of TEXT) down to 4
  98.       if line N of TEXT is empty then
  99.         delete line N of TEXT
  100.         next repeat
  101.       end if
  102.       if char 1 of line N of TEXT is "," then
  103.         put line N of TEXT after line N-1 of TEXT
  104.         delete line N of TEXT
  105.         next repeat
  106.       end if
  107.       if char 1 to 4 of line N of TEXT is "竚アbg" then
  108.         delete line N of TEXT
  109.         put "," before line N of TEXT
  110.       end if
  111.       if char 1 to 5 of line N of TEXT is "竚エC1" then
  112.         delete line N of TEXT
  113.         put "竚エC1," before line N of TEXT
  114.       end if
  115.       if char 1 to 4 of line N of TEXT is "竚エC2" then
  116.         delete line N of TEXT
  117.         put "," before line N of TEXT
  118.       end if
  119.     end repeat
  120.     if item 9 of TEXT is not empty and line 1 of item 10 of TEXT is not "テゥテ甘ャテヲテャヒ凖⑦テゥテォテ、iテアツコテ⑦ティ竕・テョFテョ窶佚ァテ愿⑴ティテソテ・テョテョ窶佚ァテ愿⑴ティテソティテォテョ窶佚ァテœ" then
  121.       put return & item 9 of TEXT after item 10 of TEXT
  122.       put "テョNテ・テゥテ⑿テョNテウテ禿⒀テ⑦ティoテウテ テゥテア" & return into item 9 of TEXT
  123.     end if
  124.     if item 1 of line (number of lines of TEXT)-1 of TEXT is not "竚ゥS" then
  125.       put "竚ゥS,,,,,,,,,,,,,,," & return before line (number of lines of TEXT) of TEXT
  126.     end if
  127.   end if
  128.  
  129.   if Ch<10 then
  130.     repeat with N=(number of lines of TEXT) down to 2
  131.       put N into cd field "count"
  132.       put line N of TEXT into LN
  133.       if LN is empty then
  134.         delete line N of TEXT
  135.         next repeat
  136.       end if
  137.       if char 1 of LN is "," then
  138.         delete line N of TEXT
  139.         put LN after line N-1 of TEXT
  140.         next repeat
  141.       end if
  142.       if LN is "テ‡ツェテ‡テεォツコ" then
  143.         delete line N of TEXT
  144.         next repeat
  145.       end if
  146.       repeat with M=(number of chars of LN)-1 down to 1
  147.         set cursor to busy
  148.         if char M to M+1 of LN is ", " then put empty into char M+1 of line N of TEXT
  149.       end repeat
  150.       if line N of TEXT is "竚イBテ・ヒ堙ァツソ" then put 10 into Ch
  151.       if item 1 of line N of TEXT is "竚ィN2" then put "竚ィN" into item 1 of line N of TEXT
  152.     end repeat
  153.     if Ch=2 then put "竚イBテ・ヒ堙ァツソ" & return & "竚εッiテア竅„" & return & "竚コBテ・ヒ堙ァツソ" & return before last line of TEXT
  154.   end if
  155.  
  156.   if Ch=30 then
  157.     put CvSort(dateT) into DT
  158.     repeat with N=(number of lines of TEXT) down to 2
  159.       put item 1 of line N of TEXT into NT
  160.       put offset("/",item 1 of line N of TEXT) into M
  161.       if M=0 then next repeat
  162.       put item 1 of dateT & char 1 to 2 of NT & char 4 to 5 of NT into NT
  163.       if DT > NT then add 10000 to NT
  164.       put NT into item 1 of line N of TEXT
  165.     end repeat
  166.   end if
  167.  
  168.   if Ch=40 then
  169.     repeat with N=4 to (number of lines of TEXT)
  170.       if char 1 to 2 of line N of TEXT is "竚ゥ" and item 2 of line N of TEXT is 5 then
  171.         if item 1 of line N of TEXT is "竚ゥ0000" then next repeat
  172.         put word 1 of line N+1 of TEXT into dateR
  173.         if dateR is empty then next repeat
  174.         put CvItem(dateR) into DR
  175.         convert DR to dateItems
  176.         put dateR && item (item 7 of DR) of CW into line N+1 of TEXT
  177.       end if
  178.     end repeat
  179.   end if
  180.  
  181.   put TEXT into cd field "Text"
  182.   put empty into cd field "count"
  183.   answer "テ映テ…[テ運テ嘘テ嘉ャテ頴テ…[テ曳テ、テ†テウマ\"
  184. end mouseUp
  185.  
  186.  
  187. -- part 5 (button)
  188. -- low flags: 00
  189. -- high flags: A003
  190. -- rect: left=337 top=291 right=313 bottom=420
  191. -- title width / last selected line: 0
  192. -- icon id / first selected line: 0 / 0
  193. -- text alignment: 1
  194. -- font id: 16383
  195. -- text size: 12
  196. -- style flags: 0
  197. -- line height: 16
  198. -- part name: Save
  199. ----- HyperTalk script -----
  200. on mouseUp
  201.   put cd field "File" into FN
  202.   open file FN
  203.   write cd field "Text" to file FN
  204.   close file FN
  205.   answer FN && "テッ竄ャテォ竏づ、テ†テウマ\"
  206. end mouseUp
  207.  
  208.  
  209. -- part 6 (field)
  210. -- low flags: 15
  211. -- high flags: 0000
  212. -- rect: left=213 top=270 right=287 bottom=308
  213. -- title width / last selected line: 0
  214. -- icon id / first selected line: 0 / 0
  215. -- text alignment: 0
  216. -- font id: 16384
  217. -- text size: 12
  218. -- style flags: 0
  219. -- line height: 16
  220. -- part name: count
  221.  
  222.  
  223. -- part 7 (button)
  224. -- low flags: 00
  225. -- high flags: A009
  226. -- rect: left=439 top=291 right=313 bottom=491
  227. -- title width / last selected line: 0
  228. -- icon id / first selected line: 0 / 0
  229. -- text alignment: 1
  230. -- font id: 16383
  231. -- text size: 12
  232. -- style flags: 0
  233. -- line height: 16
  234. -- part name: Quit
  235. ----- HyperTalk script -----
  236. on mouseUp
  237.   answer "LN Data Converter テ‡ï」ソティIテウマ\テ‡ツオテ‡ニ津‡窶。テ‡テ甘‡テ偲‡ツオテ‡ツ「テ‡竕暗‡竏妥‡ツゥテ⑨" with "Yes" or "No"
  238.   if it is "No" then exit mouseUp
  239.   doMenu "Quit HyperCard"
  240. end mouseUp
  241.